package com.tang.netflix.controller;

import com.tang.netflix.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:Mr.Tang
 * @DATE:2023/12/22 12:59
 */
@RestController
public class TestController {

    @GetMapping("wangzhe")
    public String hello(){
        return "<h1>欢迎来到王者荣耀，敌军...</h1>";
    }

    @GetMapping("user")
    public User user(){
        return new User("张三丰", 29, "男");
    }
}
